#!/usr/bin/env python
# coding:utf8

import sys

def rm_dup(line): 
	p = 0
	d = {}
	for c in line: 
		l = d.setdefault(ord(c), [])
		l.append(p)
		p += 1
	print d

in_file = sys.argv[1]

for i in open(in_file):
	rm_dup(i)
